import java.awt.Graphics;
import java.awt.Point;

public class Thing
{
	int i = 0; // graphic index for tileSheet
	int x, y;
	String name;

	// The constructor that only takes x,y and the graphic index
	public Thing(int c_x, int c_y, int c_i, String c_n)
	{
		x = c_x;
		y = c_y;
		i = c_i;
		name = c_n;
		

	}

	public void draw(Graphics g, TileSheet tiles)
	{
		tiles.draw(g, x * tiles.tileSize.x, y * tiles.tileSize.y, i);
		// This draws the object at x,y 
	}

	public void move(Point p)
	{
		x = p.x;
		y = p.y;
	}


}
